<%--
  Created by IntelliJ IDEA.
  User: Fullcy
  Date: 2019/7/25
  Time: 0:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html class="no-js" lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Home</title>
    <meta name="robots" content="noindex, follow" />
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">

    <!-- CSS
	============================================ -->
    <!-- google fonts -->
    <link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,300i,400,400i,600,700,800,900%7CPoppins:300,400,500,600,700,800,900" rel="stylesheet">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="/css/bootstrapmin.css">
    <!-- Font-awesome CSS -->
    <link rel="stylesheet" href="/css/font-awesomemin.css">
    <!-- Slick slider css -->
    <link rel="stylesheet" href="/css/slickmin.css">
    <!-- animate css -->
    <link rel="stylesheet" href="/css/animate.css">
    <!-- Nice Select css -->
    <link rel="stylesheet" href="/css/nice-select.css">
    <!-- jquery UI css -->
    <link rel="stylesheet" href="/css/jqueryuimin.css">
    <!-- main style css -->
    <link rel="stylesheet" href="/css/style.css">

    <script src="/js/jquery-3.2.1min.js"></script>

    <style type="text/css">
        .operation-botton{
            background-color: #87b106;
            color: #fdfff8;
            padding: 4px 9px;
            font-size: 15px;
            border-radius: 5px;
            cursor: pointer;
        }
        .operation-botton:hover {
            background: #282828;
        }
        table{
            border:0;
            border-collapse:collapse;
        }
        table td{
            border:1px solid #ff0;
        }
    </style>

</head>
<script type="text/javascript">
    //字数限制

    window.onload = function() {
        document.getElementById('itemDesc').onkeyup = function() {
            document.getElementById('text-count').innerHTML=this.value.length;
        }
    }
    function checkTelephone() {
        var phone = document.getElementById('telephone').value;
        for(var i = 0; i < phone.length; i++){
            if(phone[i]> '9' || phone[i] < '0'){
                alert("联系方式填写不正确！");
                return false;
            }
        }
        return true;
    }


</script>
<body>
<header class="header-area">
    <!-- header 开始 -->
    <div class="main-header d-none d-lg-block">
        <!--顶部条开始-->
        <div class="header-top black-bg">
            <div class="container">
                <!--界面布局设计-->
                <div class="row align-items-center">
                    <div class="col-lg-6">
                        <div class="top-left-navigation">
                            <ul class="nav align-items-center">
                            </ul>
                        </div>
                    </div>
                    <div class="col-lg-6 d-flex justify-content-end">
                        <div class="header-social-link">
                        </div>
                        <ul class="user-info-block">
                            <!--登录开始-->
                            <%if (request.getSession().getAttribute("USER_NAME")==null){%>
                            <li><a href="/login"><i class="fa fa-sign-in"></i> 登录</a></li>
                            <%}else{%>
                            <ul class="nav">
                                <!--登录开始-->
                                <li class="mini-cart-wrap">
                                    <a href="#" class="minicart-btn">
                                        <span class="fa fa-user-circle-o"></span>
                                        <% String username=(String)request.getSession().getAttribute("USER_NAME");System.out.println(username);out.print(username);%>
                                    </a>

                                    <!--两个按钮开始-->
                                    <div class="cart-list-wrapper">
                                        <div class="minicart-button">
                                            <a href="#"><i class="fa fa-user-plus"></i> 我的</a>
                                            <a href="/logout"><i class="fa fa-user-times"></i> 注销</a>
                                        </div>
                                    </div>
                                    <!--两个按钮结束-->
                                </li>
                                <!--登录结束-->
                            </ul>
                            <%}%>
                            <!--登录结束-->
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <!--顶部条结束-->

        <!-- 顶部中间开始 -->
        <div class="header-main-area black-soft sticky">
            <div class="container">
                <div class="row align-items-center position-relative">
                    <!-- logo展示开始 -->
                    <div class="col-auto">
                        <div class="logo">
                            <a href="/">
                                <img src="/img/2.jpg" alt="Brand Logo">
                            </a>
                        </div>
                    </div>
                    <!-- logo展示结束 -->

                    <!-- 顶部标签栏开始 -->
                    <div class="col-auto position-static">
                        <div class="main-menu-area">
                            <div class="main-menu">
                                <!-- 标签栏开始 -->
                                <nav class="desktop-menu">
                                    <ul>
                                        <li class="active"><a href="/">主页 <i class="fa fa-angle-left"></i></a>
                                        </li>
                                        <li><a href="#">信息服务 <i class="fa fa-angle-down"></i></a>
                                            <ul class="dropdown">
                                                <li><a href="/getlist">失物招领 <i class="fa fa-align-center"></i></a>
                                                </li>
                                                <li><a href="/new_suggestion">发表建议 <i class="fa fa-align-center"></i></a>
                                                </li>
                                                <li><a href="#">新闻动态 <i class="fa fa-align-center"></i></a>
                                                </li>
                                                <li><a href="#">更多 <i class="fa fa-align-center"></i></a>
                                                </li>
                                            </ul>
                                        </li>
                                        <li><a href="/repairreport">报修服务 <i class="fa fa-angle-left"></i></a>
                                        </li>
                                        <li><a href="#">校园短信通<i class="fa fa-angle-left"></i></a>
                                        </li>
                                        <li><a href="#">联系我们</a></li>
                                    </ul>
                                </nav>
                                <!-- 标签栏结束 -->
                            </div>
                        </div>
                    </div>
                    <!-- 顶部标签栏结束 -->
                </div>
            </div>
        </div>
        <!-- 顶部中间结束 -->
    </div>
    <!-- header 结束 -->
</header>






<%--失物列表显示--%>
<main>
    <!-- 导航图片开始 -->
    <div class="breadcrumb-area breadcrumb-img bg-img" data-bg="img/6.jpg">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="breadcrumb-wrap">
                        <nav aria-label="breadcrumb">
                            <h3 class="breadcrumb-title">高校后勤综合信息管理平台</h3>
                            <ul class="breadcrumb justify-content-center">
                                <li class="breadcrumb-item"><a href="/"><i class="fa fa-home"></i></a></li>
                                <li class="breadcrumb-item"><a href="/getlist">失物招领中心</a></li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="blog-main-wrapper section-padding">
        <div class="container">
            <div class="row">
                <div class="myaccount-table table-responsive text-center blog-comment-wrapper" style=" margin:0 auto;width: 900px;height: 500px">
                    <div style="margin-top: 2%;">
                        <form id="form" action="fillLostForm" method="post" onsubmit="return checkTelephone();">
                            <table width="40%" border="0"  cellpadding="5" align="center" >
                                <tr>
                                    <td colspan="2">
                                        <div align="center"><b style="font-size: 22px">失物招领填写表</b></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>姓名：<input type="text" name="name" value=<%=session.getAttribute("USER_NAME")%> disabled="true"></td>
                                    <td>物品名称：<input type="text" name="itemName" id="itemName" onfocus="javascript:this.value=''" required/></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div align="center">
                                            详细描述
                                            <br>
                                            <textarea  cols="75" rows="6" placeholder="物品的丢失时间、地点、物品外观特征等详细描述，最多250字" id="itemDesc" name="itemDesc" onfocus="javascript:this.value=''" maxlength="250" required></textarea>
                                        </div>
                                        <div align="right"><span id="text-count">0</span>/250</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">联系方式：<input type="text" name="telephone" id="telephone" onfocus="javascript:this.value=''" required/></td>
                                </tr>
                                <tr>
                                    <td>
                                        <div align="right"><button class="operation-botton" type="submit" id="submit">提交</button></div>
                                    </td>
                                    <td>
                                        <div align="left"><button class="operation-botton" type="reset" >重置</button></div>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

</main>


<!-- 底部 start -->
<footer class="black-bg">
    <div class="footer-middle-area">
        <div class="container">
            <div class="row mtn-30">
                <div class="col-lg-6 col-sm-12">
                    <div class="address-block mt-30">
                        <div class="footer-logo">
                            <a href="/">
                                <img src="/img/2.jpg" alt="Brand Logo">
                            </a>
                        </div>
                        <address class="address-info d-flex align-items-center">
                            <i class="fa fa-map-marker"></i>
                            <p><span>ADDRESS : </span> 梦翔大厦</p>
                        </address>
                    </div>
                </div>
                <div class="col-lg-3 col-sm-6">
                    <address class="address-info email mt-30">
                        <i class="fa fa-envelope"></i>
                        <p><span>EMAIL : </span><a href="#">xxxx@qq.com</a></p>
                    </address>
                </div>
                <div class="col-lg-3 col-sm-6">
                    <address class="address-info email mt-30">
                        <i class="fa fa-phone"></i>
                        <p><span>PHONE : </span><a href="#">158xxxxx9442</a></p>
                    </address>
                </div>
            </div>
        </div>
    </div>
    <div class="footer-bottom-area text-center">
        <div class="container">
            <div class="row">
                <div class="newz2">
                    <div class="payment-method-list">

                    </div>

                    <p class="copyright">
                        Copyright © www.xxx.com
                    </p>
                </div>
            </div>
        </div>
    </div>
</footer>
<!-- 底部 end -->

<!-- JS
    ============================================ -->

<!-- Modernizer JS -->
<script src="/js/modernizr-3.6.0min.js"></script>
<!-- jQuery JS -->
<script src="/js/jquery-3.3.1min.js"></script>
<!-- Popper JS -->
<script src="/js/poppermin.js"></script>
<!-- Bootstrap JS -->
<script src="/js/bootstrapmin.js"></script>
<!-- slick Slider JS -->
<script src="/js/slickmin.js"></script>
<!-- Countdown JS -->
<script src="/js/countdownmin.js"></script>
<!-- Nice Select JS -->
<script src="/js/nice-selectmin.js"></script>
<!-- jquery UI JS -->
<script src="/js/jqueryuimin.js"></script>
<!-- Image zoom JS -->
<script src="/js/image-zoommin.js"></script>
<!-- image loaded js -->
<script src="/js/imagesloadedpkgdmin.js"></script>
<!-- masonry  -->
<script src="/js/masonrypkgdmin.js"></script>
<!-- mailchimp active js -->
<script src="/js/ajaxchimp.js"></script>
<!-- contact form dynamic js -->
<script src="/js/ajax-mail.js"></script>
<!-- google map api -->
<script src="http://ditu.google.cn/maps/api/js?key=AIzaSyCfmCVTjRI007pC1Yk2o2d_EhgkjTsFVN8"></script>
<!-- google map active js -->
<script src="/js/google-map.js"></script>
<!-- Main JS -->
<script src="/js/main.js"></script>

</body>
</html>
